import { ApiProperty } from '@nestjs/swagger';
import { Transform } from 'class-transformer';
import {
  IsIn,
  IsInt,
  IsNotEmpty,
  IsOptional,
  IsString,
  Min,
} from 'class-validator';

// 1. 定义公共参数
export class ParamsDto {
  @IsOptional()
  @IsString()
  @ApiProperty({ title: 'ip', required: false })
  ip: '';

  @IsOptional()
  @IsString()
  @ApiProperty({ title: 'platform', required: false })
  platform: 'WEAPP';
  @IsOptional()
  @IsString()
  @ApiProperty({ title: 'timestamp', required: false })
  timestamp;
  @IsOptional()
  @IsString()
  @ApiProperty({ title: 'token', required: false })
  token;
  @IsOptional()
  @IsString()
  @ApiProperty({ title: 'sign', required: false })
  sign;
}
